import request from '@/utils/request'

export function getProjectPage(data) {
  return request({
    url: '/biz/project/page',
    method: 'post',
    data
  })
}

export function saveProjcet(data) {
  return request({
    url: '/biz/project/save',
    method: 'post',
    data
  })
}

export function exportProject(data) {
  return request({
    url: '/biz/project/export',
    method: 'post',
    data,
    responseType: 'blob'
  })
}


export function attachment(data) {
  return request({
    url: '/biz/project/attachment',
    method: 'post',
    data
  })
}

export function getCode() {
  return request({
    url: '/biz/project/code',
    method: 'post'
  })
}

export function exportDemo() {
  return request({
    url: '/biz/project/template',
    method: 'post',
    responseType: 'blob'
  })
}
